Release 10.1A: OpenEdge Development:
Programming Interfaces


Running the sample application in Windows

To verify that your HLC application is installed correctly, run the sample application.

To run the sample application:

  1. Create a working directory, then go to it.
  2. Note: Before you develop your own applications, move c.bat to a directory that is in your path and move hlc.h to your include file directory or current working directory.

  3. Copy the example HLC files to your working directory, as follows:
  4. copy %DLC%\oebuild\hlc\examples\*.* 
    

Create an empty database:

prodb tankdb empty. 

  1. Load and run the Progress programs loaddb.p and initdb.p.
  2. Compile the C source files to create object files in your current directory:
  3. c tankdsp.c hlvcalc.c 
    

  4. Run the OEBuild utility using tankdsp and hlvcalc as object files for the HLC application.
  5. For more information on the OEBuild utility, see Building OpenEdge 4GL Executables at www.progress.com/products/documentation/start_openedge10/index.ssp.

  6. Copy the .def and .res files to your current working directory:
  7. copy %DLC%\oebuild\_prowin.* 
    

  8. Link your test HLC module using the link script OEBuild generates:
  9. link @_prowin.lnk 
    

  10. Link in the resource files:
  11. rc -k _prowin.res 
    

  12. Run hltank.p.

After you run hltank.p, verify that the results you obtain are correct by comparing them to the following results that list the input values for radius, tlength, and depth, and the correct output for tavail:


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095